package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("taskMapper")
public interface TaskMapper {
    public List<Task> selectTaskAction(Integer deptId,Integer empId,Integer value,Integer num,String content);


    public List<Task> selectTaskActionByCusName(@Param("type") Integer type,@Param("cusId") Integer cusId);

    public List<Task> selectTaskByOppId(Integer oppId);

    public List<Task> selectTaskActionByOppId(Integer oppId);

    public List<Map<String,Object>> computeActionTask(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeActionClassify(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeTaskStatus(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeTaskPriority(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeNumAndDate(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeCusNum(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeTaskNumAndDate(Integer deptId,Integer empId);

    public List<Map<String,Object>> computeActionNumAndDate(Integer deptId,Integer empId);

    public List<Task> selectEmpTaskByStatus(Integer empId,Integer taskStatus,Integer expired);

    public List<Task> selectEmpTaskByChat(Integer empId);

    public Task selectTaskByTaskId(Integer taskId);
}
